<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>部门列表</title>
  </head>
  
  <body>
  <div class="with:80%" style="margin-top:0;margin-left:0">
	<table border="1">
		<tbody>
			<tr style="height:0;background-color:SkyBlue;border:0" >
				<th colspan="5"><h2>部门列表</h2></th>
			</tr>
			<tr style="height:50;background-color:LightBlue;border:0" >
				<th style="width:100px">部门名称</th>
				<th style="width:100px">部门地址</th>
				<th style="width:100px">部门成员</th>
				<th style="width:100px">编辑</th>
				<th style="width:100px">删除</th>
			</tr>
			
					<tr th:each="info:${infos}" style="text-align:center;border:0">
						<td th:text="${info.name}"></td>
						<td th:text="${info.address}"></td>
						<td th:text="${info.member}"></td>
						<!-- href的完整路径http://localhost:8088//toEdit?id=1 -->
						<td><a th:href="@{/toEdit(member=${info.member})}">编辑</a></td>
						<td><a th:href="@{/toDelete(member=${info.member})}">删除</a></td>
					</tr>	
			<tr style="height:50;background-color:WhiteSmoke;border:0" >
				<td colspan="6" style="text-align:right;">
					<a th:href="@{/toAdd}"><b>添加用户</b></a>
				</td>
			</tr>
		</tbody>
	</table>
</div>	
  </body>
</html>